<?php /* Smarty version 2.6.19, created on 2010-11-01 17:07:33
         compiled from book_content.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'urlpro', 'book_content.html', 94, false),array('modifier', 'showpic', 'book_content.html', 94, false),array('modifier', 'date_format', 'book_content.html', 121, false),array('modifier', 'cutstr', 'book_content.html', 125, false),array('modifier', 'number_format', 'book_content.html', 131, false),array('modifier', 'freepay', 'book_content.html', 131, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>资源列表--万利达应用商城</title>
<link href="skins/stlye/footer.css" rel="stylesheet" type="text/css" />
<link href="skins/stlye/globle.css" rel="stylesheet" type="text/css" />
<link href="skins/stlye/link.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.4.1.js"></script>
<script type="text/javascript" src="js/jquery.autocomplete.js"></script>
<link rel="stylesheet" type="text/css" href="js/jquery.autocomplete.css" />
<script type="text/javascript" src="js/main.js"></script>
<script>
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
</head>

<body onload="
MM_preloadImages('skins/stlye/images/candan_04.jpg','skins/stlye/images/candan_05.jpg','skins/stlye/images/candan1_06.jpg','skins/stlye/images/candan1_07.jpg','skins/stlye/images/candan1_08.jpg','skins/stlye/images/candan1_09.jpg','skins/stlye/images/candan1_10.jpg','skins/stlye/images/candan1_11.jpg','skins/stlye/images/candan1_12.jpg','skins/stlye/images/candan1_13.jpg')">
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "top_inc.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<table width="1004" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:3px; border:solid 1px #CCC; height:260px;">
  <tr>
    <td><img src="attaching/guanggaotu_02.jpg"/></td>
  </tr>
</table>
<table width="1004" border="0" align="center" cellpadding="0" cellspacing="0" s style="margin-top:3px;">
  <tr>
    <td><?php echo $this->_tpl_vars['mappath']; ?>
 &nbsp;&nbsp;&nbsp;共有 <font color="#CC6600"><?php echo $this->_tpl_vars['productcount']; ?>
</font> &nbsp;个资源</td>
  </tr>
</table>
<table width="1004" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:3px;">
  <tr>
    <td width="222" rowspan="2"  align="left" valign="top" style="border:solid 1px #CCC;" ><table width="222" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td background="skins/stlye/images/bdsjtp_03.jpg" height="28" style="font-size:14px;  padding-left:10px; font-weight:bold;">资源中心</td>
  </tr>
  <tr>
    <td valign="top"  style=" border-bottom:solid 1px #ccc; "><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'book_cata_inc.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
  </tr>
  <tr>
    <td height="3"></td>
  </tr>
   <tr>
   <td align="center" valign="bottom"><img src="skins/stlye/images/kft_03.jpg" /></td>
  </tr>
    </table></td>
    <td width="3"></td>
    <td width="777" rowspan="2" align="left" valign="top" style="border:solid 1px #CCC;" ><?php if ($this->_tpl_vars['productcount'] != '0'): ?><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="27" background="skins/stlye/images/bdsjtp_03.jpg" ><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
  <td width="19%" align="right"><select  size="1" onchange="location.href='?<?php echo $this->_tpl_vars['urltext']; ?>
order='+this.value">
    <option value="id,desc" >按上传时间    降序</option>
    <option value="id,asc" <?php if ($_GET['order'] == 'id,asc'): ?>selected="selected"<?php endif; ?> >按上传时间    升序</option>
    <option value="xiaoshou,desc"  <?php if ($_GET['order'] == 'xiaoshou,desc'): ?>selected="selected"<?php endif; ?>>按销售量    降序</option>
    <option value="xiaoshou,asc"  <?php if ($_GET['order'] == 'xiaoshou,asc'): ?>selected="selected"<?php endif; ?>>按销售量    升序</option>
    <option value="hit,desc"  <?php if ($_GET['order'] == 'hit,desc'): ?>selected="selected"<?php endif; ?>>按点击量    降序</option>
    <option value="hit,asc"  <?php if ($_GET['order'] == 'hit,asc'): ?>selected="selected"<?php endif; ?>>按点击量   升序</option>
      <option value="price_s,desc"  <?php if ($_GET['order'] == 'price_s,desc'): ?>selected="selected"<?php endif; ?>>按价钱    降序</option>
    <option value="price_s,asc"  <?php if ($_GET['order'] == 'price_s,asc'): ?>selected="selected"<?php endif; ?>>按价钱   升序</option>
   
    </select></td>
    <td width="81%" height="27" align="right" style="padding-right:10px">
      <?php echo $this->_tpl_vars['pagetext']; ?>
</td>
  </tr>
</table></td>
  </tr>
  <tr>
    <td ><?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['prs']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="border-bottom:dotted 1px #CCC;"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin:10px 0 10px 0;">
      <tr>
        <td width="19%" rowspan="2" align="right" ><span ><a href="<?php echo ((is_array($_tmp='book_show')) ? $this->_run_mod_handler('urlpro', true, $_tmp, $this->_tpl_vars['prs'][$this->_sections['i']['index']]['id'], $this->_tpl_vars['prs'][$this->_sections['i']['index']]['rootid']) : smarty_modifier_urlpro($_tmp, $this->_tpl_vars['prs'][$this->_sections['i']['index']]['id'], $this->_tpl_vars['prs'][$this->_sections['i']['index']]['rootid'])); ?>
"><img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['prs'][$this->_sections['i']['index']]['pic'])) ? $this->_run_mod_handler('showpic', true, $_tmp) : smarty_modifier_showpic($_tmp)); ?>
" width="105" height="150"  style="border:1px solid #ccc; padding:3px" title='<?php echo $this->_tpl_vars['prs'][$this->_sections['i']['index']]['topicname']; ?>
'/></a></span></td>
        <td width="1%" rowspan="2">&nbsp;</td>
        <td width="79%" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="89%" style=" padding-left:0px;"><a href="<?php echo ((is_array($_tmp='book_show')) ? $this->_run_mod_handler('urlpro', true, $_tmp, $this->_tpl_vars['prs'][$this->_sections['i']['index']]['id'], $this->_tpl_vars['prs'][$this->_sections['i']['index']]['rootid']) : smarty_modifier_urlpro($_tmp, $this->_tpl_vars['prs'][$this->_sections['i']['index']]['id'], $this->_tpl_vars['prs'][$this->_sections['i']['index']]['rootid'])); ?>
" target="_blank"><span style="font-size:14px; font-weight: bold;"><?php echo $this->_tpl_vars['prs'][$this->_sections['i']['index']]['topicname']; ?>
</span></a></td>
            <td width="11%" ><a href="<?php echo ((is_array($_tmp='book_show')) ? $this->_run_mod_handler('urlpro', true, $_tmp, $this->_tpl_vars['prs'][$this->_sections['i']['index']]['id'], $this->_tpl_vars['prs'][$this->_sections['i']['index']]['rootid']) : smarty_modifier_urlpro($_tmp, $this->_tpl_vars['prs'][$this->_sections['i']['index']]['id'], $this->_tpl_vars['prs'][$this->_sections['i']['index']]['rootid'])); ?>
" target="_blank" style="color:#F00;" >详细介绍</a></td>
          </tr>
        
          </table></td>
        <td width="1%" rowspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="12%" align="center">所属分类：</td>
    <td width="88%"  ><strong><?php echo $this->_tpl_vars['prs'][$this->_sections['i']['index']]['lei']; ?>
</strong></td>
  </tr>
  <tr>
    <td width="12%" align="center">资&nbsp;&nbsp;源&nbsp;&nbsp;商：</td>
    <td width="88%"><?php echo $this->_tpl_vars['prs'][$this->_sections['i']['index']]['gytx']; ?>
</td>
  </tr>
   <tr>
     <td align="center">适用型号：</td>
     <td><?php echo $this->_tpl_vars['prs'][$this->_sections['i']['index']]['xinghao']; ?>
</td>
   </tr>
   <tr>
    <td align="center">上传时间：</td>
    <td><?php echo ((is_array($_tmp=$this->_tpl_vars['prs'][$this->_sections['i']['index']]['creattime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d') : smarty_modifier_date_format($_tmp, '%Y-%m-%d')); ?>
</td>
  </tr>
  <tr>
    <td align="center" valign="top">简&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;介：</td>
    <td height="60" valign="top" style=" "><?php echo ((is_array($_tmp=$this->_tpl_vars['prs'][$this->_sections['i']['index']]['jianjie'])) ? $this->_run_mod_handler('cutstr', true, $_tmp, 200, '..') : smarty_modifier_cutstr($_tmp, 200, '..')); ?>
</td>
  </tr>
  <tr>
    <td align="center" valign="top">&nbsp;</td>
    <td align="right" valign="top" style=" padding-right:10px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="55%" align="right">市场价：<span style="text-decoration:line-through"><?php echo ((is_array($_tmp=$this->_tpl_vars['prs'][$this->_sections['i']['index']]['price_s'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
 </span>Z币&nbsp; 优惠价：<span style="color:#C60"><?php echo ((is_array($_tmp=$this->_tpl_vars['prs'][$this->_sections['i']['index']]['price_m'])) ? $this->_run_mod_handler('freepay', true, $_tmp, $this->_tpl_vars['prs'][$this->_sections['i']['index']]['price_free']) : smarty_modifier_freepay($_tmp, $this->_tpl_vars['prs'][$this->_sections['i']['index']]['price_free'])); ?>
 Z币 </span>&nbsp;</td>
        <td width="45%" align="right"><?php if ($this->_tpl_vars['prs'][$this->_sections['i']['index']]['price_free'] == '0'): ?><a href="javascript:;" onclick="addcart('<?php echo $this->_tpl_vars['prs'][$this->_sections['i']['index']]['id']; ?>
','<?php echo $this->_tpl_vars['prs'][$this->_sections['i']['index']]['codeid']; ?>
',1,'')"><img src="../../skins/but_buy.gif" width="69" height="21" /></a><?php else: ?><a href="uc_download.php?gid=<?php echo $this->_tpl_vars['prs'][$this->_sections['i']['index']]['codeid']; ?>
"><img src="skins/mf2.jpg" width="69" height="21" /></a><?php endif; ?>&nbsp;&nbsp;<a href="uc_download.php?gid=<?php echo $this->_tpl_vars['prs'][$this->_sections['i']['index']]['codeid']; ?>
"><img src="skins/xz.jpg" width="69" height="21" /></a>&nbsp;&nbsp;<a href="javascript:;" onclick="addshoucang('<?php echo $this->_tpl_vars['prs'][$this->_sections['i']['index']]['id']; ?>
','<?php echo $this->_tpl_vars['prs'][$this->_sections['i']['index']]['codeid']; ?>
')"><img src="../../skins/but_put.gif" width="75" height="21" /></a></td>
      </tr>
    </table></td>
  </tr>
 
        </table>
</td>
      </tr>
      </table></td>
  </tr>
</table>
    <?php endfor; endif; ?></td>
  </tr>
   <tr>
    <td background="skins/stlye/images/bdsjtp_03.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
       <td width="19%" align="right"><select  size="1" onchange="location.href='?<?php echo $this->_tpl_vars['urltext']; ?>
order='+this.value">
    <option value="id,desc" >按上传时间    降序</option>
    <option value="id,asc" <?php if ($_GET['order'] == 'id,asc'): ?>selected="selected"<?php endif; ?> >按上传时间    升序</option>
    <option value="xiaoshou,desc"  <?php if ($_GET['order'] == 'xiaoshou,desc'): ?>selected="selected"<?php endif; ?>>按销售量    降序</option>
    <option value="xiaoshou,asc"  <?php if ($_GET['order'] == 'xiaoshou,asc'): ?>selected="selected"<?php endif; ?>>按销售量    升序</option>
    <option value="hit,desc"  <?php if ($_GET['order'] == 'hit,desc'): ?>selected="selected"<?php endif; ?>>按点击量    降序</option>
    <option value="hit,asc"  <?php if ($_GET['order'] == 'hit,asc'): ?>selected="selected"<?php endif; ?>>按点击量   升序</option>
      <option value="price_s,desc"  <?php if ($_GET['order'] == 'price_s,desc'): ?>selected="selected"<?php endif; ?>>按价钱    降序</option>
    <option value="price_s,asc"  <?php if ($_GET['order'] == 'price_s,asc'): ?>selected="selected"<?php endif; ?>>按价钱   升序</option></select></td>
    <td width="81%" height="27" align="right" style="padding-right:10px"><?php echo $this->_tpl_vars['pagetext']; ?>
</td>
      </tr>
    </table></td>
  </tr>
    </table><?php else: ?>
    <div style="text-align:center; font-size:14px; font-weight:bold"><br />
      <br />
      <br />
      抱歉，没有找到相应商品!</div>
    <?php endif; ?>
</td>
  </tr>
  <tr>
    <td></td>
  </tr>
</table>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "foot_inc.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

</body>
</html>